package com.hutao.medical.mapper.scan;

import org.apache.ibatis.annotations.Param;

import com.hutao.medical.pojo.scan.ScanFunction;

public interface ScanFunctionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ScanFunction record);

    int insertSelective(ScanFunction record);

    ScanFunction selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ScanFunction record);

    int updateByPrimaryKey(ScanFunction record);
    
    /**
     * 根据firstGuid和功能类型判断是否存在
     * @param medicalFunctionId
     * @return
     */
    int isExistScanFunctionByMedicalFunctionId(@Param("medicalFunctionId")Integer medicalFunctionId);
    
    
    /**
     *  根据firstGuid和功能类型查询id
     * @param medicalFunctionId
     * @return
     */
    ScanFunction getScanFunctionByMedicalFunctionId(@Param("medicalFunctionId")Integer medicalFunctionId);
   
}